#include <bits/stdc++.h>
using namespace std;
int a[100005];
int main() {
    freopen("duel.in", "r", stdin);
    freopen("duel.out", "w", stdout);

    int n;
    scanf("%d", &n);
    for (int i=0; i<n; i++) scanf("%d", &a[i]);
    sort(a, a+n);

    int l=0, ans=n;
    for (int i=1; i<n; i++) {
        if (a[l]<a[i]) {
            ans--;
            l++;
        }
    }

    printf("%d\n", ans);
    return 0;
}